package com.chinacoal.microservice.impl.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import com.chinacoal.microservice.model.wofkflow.QueryProcessBusinessParam;
import com.chinacoal.microservice.model.wofkflow.entity.ProcessBusinessEntity;

/**  
 * @Package: com.chinacoal.microservice.impl.service.ProcessBusinessService
 * @ClassName: ProcessBusinessService
 * @ClassDesc: 业务流程授权Service
 * @Createby: sunh
 * @CreatedDate: 2019-11-29 10:08:08
 */  
public interface ProcessBusinessService extends IService<ProcessBusinessEntity> {

	/**  
	 * @Package: com.chinacoal.microservice.impl.service.ProcessBusinessService.findList
	 * @MethodName: findList
	 * @MethodDesc: 获取业务流程授权列表
	 * @ParamList: {
	 *				 @param page
	 *				 @param pageSize
	 *				 @param queryParam
	 *			   }
	 * @Return: Page<ProcessBusinessEntity>
	 * @Createby: sunh
	 * @CreatedDate: 2019-12-02 15:41:25
	 */ 
	public Page<ProcessBusinessEntity> findList(Integer page, Integer pageSize, QueryProcessBusinessParam queryParam) throws Exception;
	
	/**  
	 * @Package: com.chinacoal.microservice.impl.service.ProcessBusinessService.getProcessByBusinessCode
	 * @MethodName: getProcessByBusinessCode
	 * @MethodDesc: 根据业务编码获取授权详情
	 * @ParamList: {
	 *				 @param orgId
	 *				 @param domainId
	 *				 @param businessCode
	 *			   }
	 * @Return: ProcessBusinessEntity
	 * @Createby: sunh
	 * @CreatedDate: 2019-12-02 15:41:35
	 */ 
	public ProcessBusinessEntity getProcessByBusinessCode(Integer orgId, String sysCode, String businessCode) throws Exception;
	
	/**  
	 * @Package: com.chinacoal.microservice.impl.service.ProcessBusinessService.insertProcessBusiness
	 * @MethodName: insertProcessBusiness
	 * @MethodDesc: 新增业务流程授权
	 * @ParamList: {
	 *				 @param processBusinessEntity
	 *			   }
	 * @Return: String
	 * @Createby: sunh
	 * @CreatedDate: 2019-12-02 15:42:03
	 */ 
	public String insertProcessBusiness(ProcessBusinessEntity processBusinessEntity) throws Exception;
	
	/**  
	 * @Package: com.chinacoal.microservice.impl.service.ProcessBusinessService.updateProcessBusiness
	 * @MethodName: updateProcessBusiness
	 * @MethodDesc: 修改业务流程授权
	 * @ParamList: {
	 *				 @param processBusinessEntity
	 *			   }
	 * @Return: String
	 * @Createby: sunh
	 * @CreatedDate: 2019-12-02 15:44:27
	 */ 
	public String updateProcessBusiness(ProcessBusinessEntity processBusinessEntity) throws Exception;
	
}
